home *** CD-ROM | disk | FTP | other *** search
/ Programming an RTS Game with Direct3D / Programming an RTS Game with Direct3D.iso / Examples / Chapter 3 / Example 3.1 / debug.h < prev    next >
Encoding:
C/C++ Source or Header  |  2005-12-04  |  410 b   |  22 lines

  1. #ifndef cj_debug
  2. #define cj_debug
  3.  
  4. #include <d3dx9.h>
  5. #include <fstream>
  6.  
  7. class DEBUG{
  8.     public:
  9.         DEBUG();
  10.         ~DEBUG();
  11.         void Print(char c[]);
  12.         std::ofstream& operator<<(char c[]);
  13.         std::ofstream& operator<<(int i);
  14.         std::ofstream& operator<<(float f);
  15.         std::ofstream& operator<<(bool b);
  16.         std::ofstream& operator<<(D3DXVECTOR3 v);
  17.         void Endl(int nr);
  18. };
  19.  
  20. static DEBUG debug;
  21.  
  22. #endif